sum_all=0   #所有数字加起来
sum_even=0  #所有偶数加起来
sum_odd=0   #所有奇数加起来
for num in range(101):
    sum_all+=num
    if num%2==0:
        sum_even+=num
    else:
        sum_odd+=num

print('所有数字加起来：{0}，所有偶数加起来：{1}，所有奇数加起来：{2}'.format(sum_all,sum_even,sum_odd))
